package com.stars.module.common.controller;

import com.stars.base.controller.BaseController;
import com.stars.base.entity.Result;
import com.stars.module.common.service.CommonService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/star/common")
public class CommonController extends BaseController {

    private final CommonService commonService;

    public CommonController(CommonService commonService) {
        this.commonService = commonService;
    }

    @RequestMapping("/clearRedis")
    public Result clearRedis () {
        return Result.result(commonService.clearRedis());
    }

}
